package org.mikhaylov.cp.web.command.impl;

import javax.servlet.http.HttpServletRequest;

import org.mikhaylov.cp.web.command.WebCommand;
import org.mikhaylov.cp.web.storage.Path;

public class NoWebCommand extends WebCommand{

	private static final long serialVersionUID = -6771913576960555506L;

	@Override
	protected boolean checkParams(HttpServletRequest request) {
		return true;
	}

	@Override
	protected boolean extractParams(HttpServletRequest request) {
		return true;
	}

	@Override
	protected void process(HttpServletRequest request) {
		forward = Path.PAGE_ERROR;
		request.setAttribute("errorMessage", "No such command");
	}

}
